package site.qjdb.pojo;


import java.util.Date;

/**
 * 	用户
 * 
 * */
public class User {
	private Integer uid; // 用户id
	private Long sno; // 学号
	private String pwd; // 密码
	private String phoneNumber; // 联系电话
	private String nickname; // 昵称
	private String department; // 院系
	private String qno; // QQ号
	private String classname; // 班级编号
	private String dormitory; // 宿舍编号
	private String imgPath; // 头像路径，数据库字段为img_path
	private Integer state; // 账号状态：0正常，1异常
	private Date registTime; // 注册时间，数据库字段为regist_time
	private Date loginTime; // 最后一次登录的时间，数据库字段为login_time

	public User() {
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Long getSno() {
		return sno;
	}

	public void setSno(Long sno) {
		this.sno = sno;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getQno() {
		return qno;
	}

	public void setQno(String qno) {
		this.qno = qno;
	}

	public String getClassname() {
		return classname;
	}

	public void setClassname(String classname) {
		this.classname = classname;
	}

	public String getDormitory() {
		return dormitory;
	}

	public void setDormitory(String dormitory) {
		this.dormitory = dormitory;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getRegistTime() {
		return registTime;
	}

	public void setRegistTime(Date registTime) {
		this.registTime = registTime;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	@Override
	public String toString() {
		return "User [uid=" + uid + ", sno=" + sno + ", pwd=" + pwd + ", phoneNumber=" + phoneNumber + ", nickname="
				+ nickname + ", department=" + department + ", qno=" + qno + ", classname=" + classname + ", dormitory="
				+ dormitory + ", imgPath=" + imgPath + ", state=" + state + ", registTime=" + registTime
				+ ", loginTime=" + loginTime + "]";
	}

}
